<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../common.jsp" %>
<html>
<head>
    <title>图文管理</title>
    <link href="${ctx}/static/agent-ui/plugins/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/easyui/themes/gray/base.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/easyui/themes/gray/easyui.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/easyui/themes/color.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/easyui/themes/default.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/agent-ui/css/buttons.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/player.css"/>
    <link href="${ctx}/static/agent-ui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <script>
        var ctx = "${ctx}"
    </script>
    <style>
        .layui-form-pane .layui-form-label {
            width: 150px;
            padding: 8px 15px;
            height: 38px;
            line-height: 20px;
            border-width: 1px;
            border-style: solid;
            border-radius: 2px 0 0 2px;
            text-align: center;
            background-color: #FBFBFB;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            box-sizing: border-box
        }
        .layui-form-pane .layui-input-block {
            margin-left: 180px;
            left: -1px
        }
    </style>
</head>
<body style="min-width: 1100px;overflow-x: auto">
<div id="receivedListHeader" class="datagrilBtn" style="height: auto">
    <input type="hidden" id="session_roleId" value="<shiro:principal property="roleId"/>"/>
    <form id="search_form" class="layui-form">
        <div class="layui-form-item">

            <div class="layui-inline">
                <div id="addData" class="layui-btn layui-btn-normal">新增</div>
            </div>
        </div>
    </form>
</div>

<div class="layui-row" id="add" style="display: none;">
    <form id = "add_form" class="layui-form layui-form-pane" action="">

        <div class="layui-form-item">
            <label class="layui-form-label">CODE</label>
            <div class="layui-input-inline">
                <select name="code" >
                    <option value="0">选项</option>
                    <option value="1">判定常用</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">文字</label>
            <div class="layui-input-inline">
                <input   name="words"   class="layui-input">
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label">页面位置</label>
            <div class="layui-input-inline">
                <input name="pagePosition" type="number" lay-verify="required" placeholder="请输入内容" class="layui-input"></input>
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label">上级位置</label>
            <div class="layui-input-inline">
                <input name="parentPosition" type="number"  placeholder="请输入内容" class="layui-input"></input>
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label">图片路径</label>
            <div class="layui-input-inline">
                <input name="picUrl"  class="layui-input"  ></input>
            </div>
        </div>
        <div class="layui-upload">
            <button type="button" class="layui-btn" id="btn1">上传图片</button>
            <div class="layui-upload-list">
                <img class="layui-upload-img" id="img1">
                <p id="demoText"></p>
            </div>
        </div>
    </form>
</div>

<div id="list" class="easyui-datagrid" style="min-width:1100px;overflow-x: scroll"></div>

<script type="text/javascript" src="${ctx}/static/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${ctx}/static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx}/static/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/static/agent-ui/plugins/layui/layui.js"></script>
<script type="text/javascript" src="${ctx}/static/agent/system/picWord.js"></script>
</body>
</html>
